Improve image reference handling
Improve image reference handling

pporada-gl/sharp,leiyangyou/sharp,lovell/sharp,digital-flowers/sharp-win32,leiyangyou/sharp,digital-flowers/sharp-win32,philip8728/sharp,digital-flowers/sharp-win32,cmtt/sharp,leiyangyou/sharp,mcanthony/sharp,papandreou/sharp,digital-flowers/sharp-win32,mcanthony/sharp,mdimitrov/sharp,papandreou/sharp,cmtt/sharp,lovell/sharp,kevinsawicki/sharp,mhirsch/sharp,dtest/sharp,brandonaaron/sharp,lovell/sharp,mcanthony/sharp,lovell/sharp,mcanthony/sharp,mdimitrov/sharp,dtest/sharp,pporada-gl/sharp,lovell/sharp,philip8728/sharp,digital-flowers/sharp-win32,digital-flowers/sharp-win32,mhirsch/sharp,mdimitrov/sharp,chrisriley/sharp,philip8728/sharp,digital-flowers/sharp-win32,pporada-gl/sharp,leiyangyou/sharp,papandreou/sharp,kevinsawicki/sharp,pporada-gl/sharp,brandonaaron/sharp,cmtt/sharp,cmtt/sharp,chrisriley/sharp,kevinsawicki/sharp,philip8728/sharp,leiyangyou/sharp,philip8728/sharp,dtest/sharp,brandonaaron/sharp,mdimitrov/sharp,chrisriley/sharp,chrisriley/sharp,papandreou/sharp,dtest/sharp,brandonaaron/sharp,mhirsch/sharp,mdimitrov/sharp,mhirsch/sharp,mcanthony/sharp,pporada-gl/sharp,brandonaaron/sharp,kevinsawicki/sharp,chrisriley/sharp,dtest/sharp,lovell/sharp,kevinsawicki/sharp,papandreou/sharp