flatten images dist