Added image upload handeling and croping js