Move setting of VAImage properties to the function where the image is created.
Attach a file by drag & drop or click to upload