added flip image functionality . Some Design  pending.