better image fixing