giving up on js image resizing