added photohandler class