How To Flatten An Image