fixed resizing of uploaded images and UI completed for frontend