The steps to generate a splash.img:
1 sudo apt-get install python-imaging
2 python ./logo_gen.py snapdragon.png