Preserve image format