adds conditional logic for image geodata, rotates images