fix formatting error of image without attributes

fixes #30