Solving problems with images distortion