format images + attributes