Added alt-function to support RetinaJS libraries.