fixing img display bug in Safari 5