replaced "this" with self only in resize function. scope issue

Conflicts:
	pictureserve.js

Signed-off-by: Andreas Geibert <ageibert@cemico.de>