Fixing math to allow images inlining