added responseCounter and fix some image resizing