Adjusted drupalgap_image_path() to check the src instead of the uri when replacing paths.