Fixed resizeToFill to work on CocoonJS