Added flag to convert images to linear gamma