[jmdb] Introducing image thumbnail generation