Switch the the actual co-ordinates of the full-size image, and use a transparent colour at the beginning to avoid the flash of black.
Move the previous data into the newData object.