fix photo machine for 4096 texture limit