Fix image format for bilateral blur