Add directive to encapsulate image rendering to right size