Finalized the drag and drop image upload