Increased possible number of instances to 1024x1024(there was stil some performance left, when the program was run in release mode ;) )