Improve preview thumbnail image creation by recognizing if a video is rotated according to metadata and counterrotating preview images accordingly. This will work for rotations of 90°, 180° and 270°. Rotation will also be taken into account when establishing if a video is a vertical video and to decide on switching the number of preview thumbnail rows and columns.