According to "pydoc string", the string module isn't normally used
nowadays.
PEP 290 (
http://www.python.org/dev/peps/pep-0290/#string-methods) also
recommends using string methods over the string module because
i. the string module may be deprecated in future;
ii. string methods are faster.
This patch converts the imgcreate code to use string methods instead of the
string module.
Note: This patch does not fix any bugs per se. I just thought it would be
good to follow the PEP guidelines... unless there is a need to support
Python 1.6 or earlier.
Signed-off-by: Tan Swee Heng <thesweeheng(a)gmail.com>