I was working on localhost with resizing images and everything was great. Than I uploaded to my server and things got interesting. After searching