image fix and layout