added formatter for image attributes