Fixed repy prepare and destroy
Implemented custom image upload