calculating exposure for photo