Moved all reading stuff into call back. I believe its reading the data before the image is pasted