Added tests for $product->media_by_type('image')