testing image for white