Added support for thumnail images in ImageDao