Converted 0-100 thumbnailQuality param to appropriate 0-9 value when calling imagepng()

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>