added image upload methods