tried to fix NullPointerException
tried to fix the NullPointerException again
some preparations for picture storage