You'll need to make two small one pixel wide jpgs, one red and one green, to make this work. You can even bevel the edges of the jpgs if you want to. The 'if' checks to make sure you haven't reached capacity as you can't have an image that is 0 pixels wide. Of course, if you haven't started the project and $intProgress = 0, then you will need a similar test for the first image.