Adding power of two conversion for Image (lime:next)

Maybe not the fastest conversion but it should work cross-platform.