vqavideodev: Check image dimensions