Update update.php

added code to prevent non image or null image upload