separated exportUtil functionality in to loadPhoto and loadLayer from initImage