clearPixelData before loading a new image