addded code to drag picture into canvas