Flipped the calculation of $targetAspectRatio in generateThumbnail() to be width/height, more inline with what most people consider the "aspect ratio". This change doesn't alter output thumbnails at all