adding event.preventDefault on drop

event.preventDefault(); was added on drop to avoid browser default behavior like opening a picture on drop