image formatting fixes