fixed bug305 added padding for floating images