Thumbnails for JPEG images implementation (For AUI)