WIP: Optional square cropping and JPEG data output