fix offset again, add aspectRatio field to demo