fix safari disappearing image issue