implemented profile image upload and deletion as well as a generic image handler