attempting image resizing client-side