attempt to get correct zoom and pan -> not properly working yet