Added logic to upload pic to listing