Added image padding in the format method.