Moved image position code to dataTransfer object