Setting PixelFormat via enum type