I don't understand the comments with -1 and -2; does it mean that because it is set to -1 (that's the test in the if), then the imagesprite height is going to be set to the original? It might be a punctuation thing, but I don't get it.