setting image scroll via main js, fixed issue with distorted images