Move photoSize setting from library to pwi.js