Removed alert when there is no drawing or photo. Also did a bit of code cleaning.