Fix black image bug.