Added support for thumbnail images