update constants with image attributes