Add a GetFormat method to canvas returning the image format
Fix GetFormat
Fix function name to get image format