Working browse media library and insert image. Pagination code might need tidying up, not my best!