Fixed edge case when drag/dropping images on Mac OS X Safari.