although I could be wrong as I thought the N900 allowed you to use a single image not have to split it into four, which is a little more tricky
for x in 0 1 2 3; do pngtopnm full.png | pnmcut $[x*800] 0 800 480 | cjpeg > bg-$x.jpg ; done
convert -crop 800x480 full.png bg.jpg