RIMG 1.0.0

[joeyvandijk] Source: https://github.com/joeyvandijk/rimg/blob/master/rimg.min.js

added IE8 support + bug fixes