Added retina image size support (@2x)

I added a function bool argument for retina image size support (@2x). Please review the commit as I'm not a PHP guru.