Fixed img-replacement when nested in another media.