moved images and replaced degToRad function