attempt 2 at fixing android chrome gallery bug