working small photo extraction