Subimage Preview Exception
Was not checking for the image to be null when setting the origin.