resolve image width or height is float value issue

if width is float value like 155.50, CGBitmapContextCreate error, I do
not know why the width of a float value , but is happened.
Merge pull request #7 from foxling/master

resolve image width or height is float value issue