Given that this file is just a constructor with no methods, do you really need a class?  Or could you just go back to the existing createThumbnail() function?