adds conditional logic for image geodata, rotates images

@tonyta @marcomo @pvergel