Added image upload and some checks.