finish img formatting