now works with JSONified images & thumbs