pattern photo upload