The answer to your for first question is that scaling is not supported. You need to create separate images for each ball.
The two other questions are related to general programming or graphics programming. It's not easy to give a short answer to them. Check info on using looping constructs for the second question. For the third, as you know the position of the ball, solution is boundary checking.