Faster better

Working code, integrale image fixed