Outputs the current layer to a TCanvas.
If CreateWidth and CreateHeight are not specified, the layer will be drawn at the current size.
If UseDisplayAR is true, then the image will be returned with the same aspect ratio it is displayed, If false, it is stretched to the specified CreateWidth and CreateHeight dimensions.