Changed method alignToPixe to makeFrameIntegral and it's implementation based on standard CGRectIntegral function