add client-side image thumbnailing