Learn how to Flatten Images