photoBox bug fixes