python 3 support
fixed bug with appending picture