Never be afraid to write code to
test your beliefs. It should be trivial to pull this into a new, stand alone program, and try it out. You can include some additional println statements. I's suggest something like on line 10:
System.out.println("Creating pixel at " + tempheight + ", " + width + "." );
you could also create a new counter outside the loop and increment it each time you create a new pixel, and print it's value as well - either as you go, or when your done with both loops have a "i created X objects in total".
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors