Removed PHP error caused by no image being found in the post