flatten Images