[DF-3547] Added methods to create sprite from png image with not power of 2 sides. Added unit test for MacOS