Fixed setting image attributes after drop