sanitise geometry arg for images
reorder arguments for convenience