Homework for Java : Create image