Fix FromImage mode