Formatting preview image