added form preview for the uploaded image
modified function to take ID instead of hard coded id