added new image upload api
Refactored image uploading with polymorphic asset class