Of course. This would actually be a pretty sweet programming challenge. Now, the image would always be displayed as a raster image but it could still be in a vector based format. Funny enough, I've been developing a game called "Vector Circuit" for the past week or so. Nearly everything in the game is going to be made of lines and simple shapes.