Output image is a mosaic, but of just the same tile. A bug is in my avg formula. Can't figure it out at the moment