image upload is now a class