Added zoom and offset parameters