fixing image width and length limitation