set image width and height for ajax