fixed relative urls and added cropping