Fix for opening image with drag and drop